import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue')
    },
    {
      path: '/theme',
      name: "theme",
      component: () => import("@/views/Theme.vue")
    },
    {
      path: "/computed",
      name: "computed",
      component: () => import("@/views/Computed.vue")
    },
    {
      path: "/elementui",
      name: 'elementui',
      component: () => import("@/views/ElementUI.vue")
    },
    {
      path: '/rem',
      name: 'rem',
      component: () => import('@/views/Rem.vue')
    },
    {
      path: "/synca",
      name: "synca",
      component: () => import("@/views/Synca.vue")
    },
    {
      path: '/compute',
      name: "compute",
      component: () => import("@/views/Compute.vue")
    },
    {
      path: "/compute_1",
      name: "compute_1",
      component: () => import('@/views/Compute_1.vue')
    },
    {
      path: "/watch_1",
      name: 'watch_1',
      component: () => import("@/views/Watch_1.vue")
    },
    {
      path: '/watch_2',
      name: "watch_2",
      component: () => import('@/views/Watch_2.vue')
    },
    {
      path: '/border_images',
      name: "borderImage",
      component: () => import("@views/BorderImage.vue")
    },
    {
      path: '/flex',
      name: "flex",
      component: () => import("@views/FlexContainer.vue")
    },
    {
      path: '/test',
      name: 'test',
      component: () => import("@views/Test.vue")
    },
    {
      path: '/vue_set',
      name: 'vueSet',
      component: () => import("@views/VueSet.vue")
    },
    {
      path: '/vue_delete',
      name: 'vueDelete',
      component: () => import("@views/VueDelete.vue")
    },
    {
      path: '/vue_filter',
      name: 'vueFilter',
      component: () => import("@views/VueFilter.vue")
    },
    {
      path: '/filters',
      name: "filter",
      component: () => import("@views/Filters.vue")
    },
    {
      path: "/img_directive",
      name: "imgDirective",
      component: () => import("@views/ImgDirective.vue")
    },
    {
      path: '/highlight_directive',
      name: "highlightDirective",
      component: () => import("@views/HighlightDirective.vue")
    }
  ]
})
